//
//  BaseContrastIconView.m
//  ZITHER
//
//  Created by imac on 2018/6/25.
//  Copyright © 2018年 MinesTime. All rights reserved.
//

#import "BaseContrastIconView.h"
@interface BaseContrastIconView ()

@end
@implementation BaseContrastIconView
- (IBAction)click:(UIControl *)sender {
    if (self.contrastIconClickBlock) {
        self.contrastIconClickBlock();
    }
}

+ (BaseContrastIconView *)instance {
    BaseContrastIconView *view = (BaseContrastIconView *)[[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil] firstObject];
    CGFloat margin = 81;
    CGFloat y = kScreenH - NaviHeight - TabbarHeight - 120 - margin;
    view.frame = CGRectMake(kScreenW - margin, y, margin, margin);
    return view;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}
@end
